<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS 表单布局</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: Consolas;
        }
        body{
            background-color: #096DD9;
        }
        .container{
            width: 298px;
            height: auto;
            margin: 100px auto;
            background-color: white;
            padding: 10px;
            border-radius: 5px;
            opacity: 0.8;
        }
        .title{
            width: 100%;
            height: 120px;
        
            /*处理 margin 传递*/
            overflow: hidden;
        }
        .title h2{
            font-size: 32px;
            padding: 10px 0;
            margin: 60px 0 0 0;
            text-align: center;
        }
        .reg-options{
            width: 100%;
            height: 60px;
            text-align: center;
            line-height: 60px;
        }
        .reg-options input{
            outline: none;
            padding-left: 10px;
            width: 250px;
            height: 40px;
            border: 2px solid black;
        }
        .container .reg-options-radio{
            width: 100%;
            height: 40px;
            overflow: hidden;
        }
        .options-radio{
            width: 264px;
            height: 20px;
            margin: 10px auto;
        }
        input[type=submit],input[type=reset]{
            width: 264px;
            background-color: #096DD9;
            color: white;

        }
    </style>
</head>
<body>
    <div class="container">
        <div class="title">
            <h2> User Register</h2>
        </div>
        <form action="?" method="get">
            <div class="reg-options">
                <input type="text" placeholder="用户名">
            </div>
            <div class="reg-options">
                <input type="password" placeholder="密码">
            </div>
            <div class="reg-options">
                <input type="password" placeholder="确认密码">
            </div>
            <div class="reg-options">
                <input type="text" placeholder="手机号">
            </div>
            <div class="reg-options">
                <input type="text" placeholder="邮箱">
            </div>
            <div  class="reg-options-radio">
                <div class="options-radio">
                    <span> 性别：</span>
                    <label>
                        <input type="radio" checked name="sex" id="" value="1"> 男
                    </label>
                    <label>
                        <input type="radio" name="sex" id="" value="2"> 女
                    </label>
                </div>
            </div>
            <dir class="reg_btn">
                <div class="reg-options">
                    <input type="submit" value="注册" />
                </div>
                <div class="reg-options">
                    <input type="reset" value="重置" />
                </div>
            </dir>
        </form>
    </div>
</body>
</html>